package com.gzzn.validate.support;

import com.gzzn.validate.internal.Rule;

/**
 * author : zdp（zdp118@gmail.com）
 * date   : 2014-3-2
 * URI验证器
 */
public class HttpUrlValidate extends ValidateWithRegex {
	
	static final String URL_REGEX =
			"^(https?:\\/\\/)?[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&amp;:/~\\+#]*[\\w\\-\\@?^=%&amp;/~\\+#])?$";

	static final String messageT = "Please enter a valid URL.";

	public HttpUrlValidate() {
		super(messageT,Rule.URL, URL_REGEX);
	}

}
